<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>服务商平台-商户审核</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href=<s:url value="/css/common.css"/>>
	<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
	<%-- <script type="text/javascript" src="<s:url value="/js/query_Address.js" />"></script> --%>
	<script type="text/javascript" src="<s:url value="/js/jquery.validate.min.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/pwms.validate.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type='text/javascript' src='<s:url value="/js/YLlightbox.js"/>'></script>
	<script type='text/javascript' src='<s:url value="/js/pageAjax.js"/>'></script>
	<script type='text/javascript' src='<s:url value="/js/checkMerinfoinfoCount.js"/>'></script>
	<%-- <script type="text/javascript" src="<s:url value="/dwr/engine.js"/>"></script>
	<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script> --%>
	<style>
		 .fieldError { color: red; text-align: left; }
		.error { float: none; color: red;  vertical-align: top;font-size: 11px;}
	</style>
</head>
<body>
<s:form id="downloadForm" method="POST" action="/mer/zipExport.ct" theme="simple">
	<s:hidden id="picDownlodHid" name="merinfo.id" />
</s:form>
<s:form id="merinfoForm" method="POST" action="/mer/checkNewMerinfo.ct" theme="simple">
<s:hidden id="isMid" name="merinfo.id" />
<s:hidden id="certifNoParams" name="merinfo.certifNo"/>
<s:hidden id="busiLiceNoParams" name="merinfo.busiLiceNo"/>
<s:hidden id="accountParams" name="merinfo.bankAccount.account"/>
<s:hidden id="approvalUserName" name="merinfo.approvalUserName"/>
<s:hidden id="dvpby" name="merinfo.dvpBy"/>
<s:hidden id="stlmWayDesc" name="merinfo.stlmWayDesc"/>
<s:hidden id="resultDetail" name="merinfo.audit.result_detail" />
<s:hidden id="certif" name="merinfo.certif" />
<s:hidden id="certifNo" name="merinfo.certifNo" />
<s:hidden id="bankAccountName" name="merinfo.bankAccount.name" />
<s:hidden id="bankAccountNo" name="merinfo.bankAccount.account" />
<s:hidden id="stlmWayDesc" name="merinfo.stlmWayDesc" />

<table class="tb" style="width:100%">
    <tbody>
        <tr class="tb-line">
            <td class="tb-td" colspan="4" ><div class="tb-h3">新增商户信息审核</div></td>
        </tr>
         
        <tr class="tb-line bg-gray">
            <td  align="right" class="tb-td"><div class="tb-h4">申请人：</div></td>
            <td class="tb-td" colspan="3">
                <label class="tb-normal"> <s:property value="merinfo.recUpdOpr"/> 
                	<font color="red" style="margin-bottom: -20px; margin-left: 400px"><s:actionmessage/></font>
                </label>
            </td>
        </tr>
        
        <s:if test="merinfo.auditList!=null && merinfo.auditList.size>0">
        <tr class="tb-line">
            <td class="tb-td" colspan="4"><div class="tb-h3"><font color="red">被驳回信息</font></div></td>
        </tr>
		<tr class="tb-line" >
            <td align="center" class="tb-td" colspan="4" style="padding: 0;">
                <table style="width: 100%" class="bg-gray"  >
                	<tr class="tb-line" align="center"> 
                		<td class="tb-td" style="width:15%"><b>审核员</b></td>
                		<td class="tb-td" style="width:65%"><b>驳回原因</b></td>
                		<td class="tb-td" style="width:20%"><b>驳回时间</b></td>
                	</tr>
                	<s:iterator value="merinfo.auditList" var="audit">
                		<tr class="tb-line"  align="center">
                			<td class="tb-td"><s:property value="#audit.operators"/> </td>
                			<td class="tb-td"><s:property value="#audit.result_detail"/> </td>
                			<td class="tb-td">
                				<fmt:formatDate value="${audit.dtCreate}" type="both"/>
                			</td>
                		</tr>
                	</s:iterator>
                </table>
            </td>
        </tr>
		</s:if>
		
        <tr class="tb-line bg-gray">
            <td class="tb-td" colspan="4"><div class="tb-h3">基本信息</div></td>
        </tr>

        <tr class="tb-line">
            <td align="right" class="tb-td" style="width:110px;">
                <div class="tb-h4">商户简称：</div>
            </td>
            <td class="tb-td" >
             	<label class="tb-input-lengthen"><s:property value="merinfo.nameBusi"/>
                </label>
            </td>
            <td align="right" class="tb-td" style="width:110px;">
                <div class="tb-h4">工商注册名称：</div>
            </td>
            <td class="tb-td" >
             	<label class="tb-input-lengthen"><s:property value="merinfo.name"/>
				</label>
            </td>
        </tr>

        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户注册地址：</div>
            </td>
            <td class="tb-td" colspan="3" >
                <label class="tb-select">
                	<s:property value="merinfo.provCd"/>-
                	<s:property value="merinfo.cityCd"/>-
                	<s:property value="merinfo.areaCd"/>-
                	<s:property value="merinfo.regAddr"/>
                </label>
            </td>
        </tr>
		 <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">法人代表：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-lengthen"><s:property value="merinfo.certif"/></label>
            </td>
            <td align="right" class="tb-td">
                <div class="tb-h4">营业执照号码：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-lengthen"><s:property value="merinfo.busiLiceNo"/>
                </label><font id="busiLiceNo" color="red"></font>
            </td>
        </tr>
        
        <tr class="tb-line">
			<td align="right" class="tb-td" >
				<div class="tb-h4">法人证件类型：</div>
			</td>
            <td class="tb-td" >
               <label class="tb-select">
               		<s:property value="merinfo.certifType"/>
               		<%-- <s:select name="merinfo.certifType" list="#request.certifType"></s:select> --%>
                </label>
            </td>
            <td   align="right" class="tb-td" >
                <div class="tb-h4">法人证件号码：</div>
            </td>
			<td class="tb-td" >
				<label class="tb-input-lengthen"><s:property value="merinfo.certifNo"/></label>
				<font id="certifNo" color="red"></font>
				<s:if test="merinfo.certifType==\"身份证\"">
				<input id="checkCerButton" type="button" value="验证法人身份证信息" onclick="verifyIdNum(1)"/>
				</s:if>
			</td>
		</tr>
		<s:if test="merinfo.mchtExtendInfo!=null">
			<tr class="tb-line">
				<td align="right" class="tb-td">
					<div class="tb-h4">法人证件有效期</div>
				</td>
			<s:if test="merinfo.mchtExtendInfo.certifStartDate!=null && merinfo.mchtExtendInfo.certifEndDate!=null">
				<td class="tb-td">
					<label class="tb-input-lengthen">
						<s:property value="merinfo.mchtExtendInfo.certifStartDate"/>至
						<s:property value="merinfo.mchtExtendInfo.certifEndDate"/>
					</label>
				</td>
			</s:if>
			<s:else><td class="tb-td">长期</td></s:else>
				<td align="right" class="tb-td">
					<div class="tb-h4">营业执照有效期</div>
				</td>
			<s:if test="merinfo.mchtExtendInfo.busiLiceStartDate!=null && merinfo.mchtExtendInfo.busiLiceEndDate!=null">
				<td class="tb-td">
					<label class="tb-input-lengthen">
						<s:property value="merinfo.mchtExtendInfo.busiLiceStartDate"/>至
						<s:property value="merinfo.mchtExtendInfo.busiLiceEndDate"/>
					</label><font id="busiLiceNo" color="red"></font>
				</td>
			</s:if>
			<s:else><td class="tb-td">长期</td></s:else>
			</tr>
			<s:if test="merinfo.mchtExtendInfo.backup5 != null">
				<tr class="tb-line">
					<td align="right" class="tb-td">拓展人：</td>
					<td class="tb-td" colspan="3">
					<label class="tb-input-normal">
						<s:property value="merinfo.mchtExtendInfo.backup5"/>
					</label>	
					</td>
				</tr>
			</s:if>
		</s:if>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户联系人：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen"><s:property value="merinfo.contactName"/>
                </label>
            </td>
            <td  align="right" class="tb-td">
                <div class="tb-h4">手机号码：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen"><s:property value="merinfo.contactPhoneNo"/>
                </label>
            </td>
        </tr>
        
		<tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">经营业务、范围：</div>
            </td>
            <td class="tb-td"  >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.busiMain"/>
                </label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">商户类型：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-normal">
                	<s:if test="merinfo.nationCd==\"0  \"">
                 		个体户
                 	</s:if>
					<s:if test="merinfo.nationCd==\"1  \"">
						企业
					</s:if>
                </label>
            </td>
        </tr>
        
         <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户等级：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.isGroup"/>
                </label>
            </td>
            <td align="right" class="tb-td">
                <div class="tb-h4">商户联接方式：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-normal">
                	<s:if test="merinfo.groupCD==\"0\""> 间联 </s:if>
                 	<s:if test="merinfo.groupCD==\"1\""> 直联</s:if>
                	<s:if test="merinfo.groupCD==\"2\""> 间联直营</s:if>
                </label>
            </td>
        </tr>
      <s:if test="#request.groupCd==\"2\"">
			<tr class="tb-line">
				<td align="right" class="tb-td">
					<div class="tb-h4">发展人：</div>
				</td>
				<td class="tb-td" >
					<label class="tb-input-lengthen">
						<s:property value="merinfo.mchtExtendInfo.developPersonName"/>
					</label>
					
				</td>
				<td align="right" class="tb-td" >
					<div class="tb-h4">所属机构：</div>
				</td>
				<td class="tb-td" >
					<label class="tb-input-normal">
						<s:property value="#request.orgName"/>
					</label>
				</td>
			</tr>
		</s:if>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">备注：</div>
            </td>
            <td class="tb-td" colspan="3" >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.ext2"/>
                </label>
            </td>
        </tr>
         <tr class="tb-line bg-gray">
            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">商户结算信息</div></td>
        </tr>
         <tr class="tb-line" style="width:100%">
				    	<td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4">账户属性：</div>
			            </td>
			            <td class="tb-td" id="approvalUserName" colspan="3">
			            	<s:if test="merinfo.approvalUserName==\"0\"">
			            		私人账户
                 			</s:if>
                 			<s:if test="merinfo.approvalUserName==\"1\"">
                 				企业账户
                 			</s:if>
						 </td>
		</tr>
		<tr class="tb-line"  >
			<td align="right" class="tb-td"  >
				<div class="tb-h4">是否法人结算：</div>
			</td>
			<td class="tb-td"   >
				<label class="tb-input-lengthen">
					<s:if test="merinfo.dvpBy==\"0\"">
						是
					</s:if>
					<s:if test="merinfo.dvpBy==\"1\"">
						否
					</s:if>
				</label>
			</td>
			<td align="right" class="tb-td"  >
				<div class="tb-h4">非法人身份证号：</div>
			</td>
			<td class="tb-td">
				<s:if test="merinfo.stlmWayDesc!=null"> 
				<label class="tb-input-lengthen">
					<s:property value="merinfo.stlmWayDesc"/>
					<font id="checkstl" color="red"></font>
				</label>
				<input id="stlButton" type="button" value="验证非法人身份证信息" onclick="verifyIdNum(2)"/> 
				</s:if><s:else><label class="tb-input-lengthen">无</label></s:else> 
			</td>
		</tr>
		<tr class="tb-line"  >
			<td align="right" class="tb-td"  >
				<div class="tb-h4">账户名称：</div>
			</td>
			<td class="tb-td"   >
				<label class="tb-input-lengthen">
					<s:property value="merinfo.bankAccount.name"/>
				</label>
			</td>
			<td align="right" class="tb-td"  >
				<div class="tb-h4">账户账号：</div>
			</td>
			<td class="tb-td"   >
				<label class="tb-input-lengthen">
					<s:property value="merinfo.bankAccount.account"/>
				</label>
				<input id="bankactButton" type="button" value="验证结算卡号信息" onclick="verifyIdNum(3)"/> 
				<font id="account" color="red"></font>
			</td>
		</tr>
                 <tr class="tb-line"  >
                   <td   align="right" class="tb-td"  >
                        <div class="tb-h4">开户行：</div>
                    </td>
                    <td class="tb-td" >
                        <label class="tb-input-lengthen">
                        	<s:property value="merinfo.bankAccount.bankName"/>
                        </label>
                    </td>
                    <td align="right" class="tb-td"  >
                        <div class="tb-h4"><!-- 开户行支付系统行号 -->联行号：</div>
                    </td>
                    <td class="tb-td"   >
                        <label class="tb-input-lengthen">
                        <s:property value="merinfo.bankAccount.bankCode"/>
                        </label>
                    </td>
                </tr>
                <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">终端信息共计[<s:property value="merinfo.terminfoList.size()"/>]台</div></td>
		        </tr>
		        <s:if test="merinfo.mchtExtendInfo!=null">
	               	<tr class="tb-line" >
	               		<td   align="right" class="tb-td"  >
	                        <div class="tb-h4">机具产权：</div>
	                    </td>
		                <s:if test="merinfo.mchtExtendInfo.termProperty==1">
	                    <td class="tb-td" colspan="3">
	                        <label class="tb-input-lengthen">
	                        	押金
	                        </label>
	                    </td>	
		                </s:if>
		                <s:if test="merinfo.mchtExtendInfo.termProperty==0">
		                <td class="tb-td" colspan="3">
	                        <label class="tb-input-lengthen">
	                        	免投
	                        </label>
	                    </td>
		                </s:if>
		                <s:if test="merinfo.mchtExtendInfo.termProperty==2">
		                <td class="tb-td" colspan="3">
	                        <label class="tb-input-lengthen">
	                        	销售
	                        </label>
	                    </td>
		                </s:if>
	                </tr>
				</s:if>
 				<tr class="tb-line">
 					<td class="tb-td" colspan="4" style="padding:0;">
 						<table style="width: 100%" >
 							<s:iterator value="merinfo.terminfoList" var="ter" status="sums">
					        	<tr class="tb-line"  >
					        	   <td rowspan="4" align="center">第[<s:property value="#sums.index+1"/>]台</td>
				                   <td   align="right" class="tb-td"  >
				                        <div class="tb-h4">终端类型：</div>
				                    </td>
				                    <td class="tb-td" >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.TermTp"/>
				                        </label>
				                    </td>
				                    <td align="right" class="tb-td"  >
				                        <div class="tb-h4">终端接入方式：</div>
				                    </td>
				                    <td class="tb-td"   >
				                        <label class="tb-input-lengthen">
				                        	<s:if test="#ter.TmnlIntype==\"0\"">无线(GPRS)</s:if>
				                        	<s:if test="#ter.TmnlIntype==\"1\"">有线(拨号)</s:if>
				                        </label>
				                    </td>
				                </tr>
				                <tr class="tb-line"  >
				                <td   align="right" class="tb-td"  >
				                        <div class="tb-h4">押金：</div>
				                    </td>
				                    <td class="tb-td" >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.TmnlMoney"/>
				                        </label>
				                    </td>
				                   
				                    <td align="right" class="tb-td"  >
				                        <div class="tb-h4">安装地址：</div>
				                    </td>
				                    <td class="tb-td"   >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.Installlocation"/>
				                        </label>
				                        <!-- <input value="添加终端风控信息" type="button"/> -->
				                    </td>
				                    <s:iterator value="#ter.riskCfgList" var="risk" status="stat">
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].id.TermId"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].id.CardType"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].AccpetStartTime"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].AccpetEndTime"/>
			                			<tr class="tb-line">
						                	<td   class="tb-td" colspan="4" style="padding:0;">
						                		<table style="width: 100%">
						                			<tr class="tb-line">
						                				<td class="tb-td" align="left">
						                					<s:if test="#risk.id.CardType==\"00\"">贷记卡 </s:if>
						                					<s:if test="#risk.id.CardType==\"01\"">借记卡</s:if>
						                				 </td>
						                				<td class="tb-td">营业时间：<s:property value="#risk.AccpetStartTime.substring(0,2)"/>:<s:property value="#risk.AccpetStartTime.substring(2,4)"/>  -  <s:property value="#risk.AccpetEndTime.substring(0,2)"/>:<s:property value="#risk.AccpetEndTime.substring(2,4)"/></td>
						                				
						                				<td class="tb-td">	
						                					单笔下限：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].SingleMinMoney"  value="1" maxlength="4"/></label>元<span ></span>
						                				</td>
						                				<td class="tb-td">
						                					单笔上限：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].SingleLimitmoney" value="<s:if test="merinfo.productStrs.length==4">100000</s:if><s:else>50000</s:else>" maxlength="6"/></label>元<span ></span>
						                				</td>
						                				<td class="tb-td">
						                					单日累计限额：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].TotalLimitmoney" value="1000000" maxlength="7"/></label>元<span ></span>
						                				 </td>
						                				 
						                			</tr>
						                			 
						                		</table>
						                        
						                    </td>
						                </tr>
					                </s:iterator>
				                </tr>
					        </s:iterator>
 						</table>
 					</td>
 				</tr>
 				<tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">产品信息</div></td>
		        </tr>
		         <tr class="tb-line">
                    <td   align="right" class="tb-td">
                        <div class="tb-h4">产品信息：</div>
                    </td>
                    <td  align="left" class="tb-td" style="padding-left: 15px;">
                    	<%--  <s:property value="#request.choosePosName"/> --%>
                    	<s:iterator value="merinfo.productCode" var="c" status="st">
			        	  <s:if test="#st.index!=0 && #c!=null">+</s:if> <s:property value="#c" /> 	
			        	</s:iterator>
                    	<%--  <s:hidden id="choosePos" value="%{#request.choosePosName}"/> --%>
                    </td>
                    <td   align="right" class="tb-td">
                        <div class="tb-h4">开通POS功能：</div>
                    </td>
                    <td  align="left" class="tb-td" style="padding-left: 5px;">
                    	<s:checkboxlist name="merinfo.productStrs" list="#request.posFunction" value="merinfo.productStrs" /><span></span>
                    </td>
                </tr>
                <s:iterator value="merinfo.fee" var="fees" status="feestat">
                	<tr class="tb-line">
	                 	<td align="right" class="tb-td" ><s:property value="#fees.mchtFeeMd"/>： </td>
	                 	<td align="left" class="tb-td"  colspan="3" style="padding-left:15px;">
							<s:hidden name="merinfo.fee[%{#feestat.index}].subBizCd"/>
							<s:hidden name="merinfo.fee[%{#feestat.index}].prodCd"/>
							<s:if test="#fees.prodCd!=null && (#fees.prodCd=='1191' || #fees.prodCd=='1391')">
								<s:textfield name="merinfo.fee[%{#feestat.index}].mchtFeePercent" value="%{#fees.mchtFeePercent}"  maxLength="5" readonly="true" cssStyle="background-color:lightgray;"/>% -
							</s:if>
							<s:else>
								<s:textfield name="merinfo.fee[%{#feestat.index}].mchtFeePercent" value="%{#fees.mchtFeePercent}"  maxLength="5" />% -
							</s:else>
							<s:textfield name="merinfo.fee[%{#feestat.index}].mchtFeePctMax"  value="%{#fees.mchtFeePctMax}"  maxLength="5"  readonly="true" cssStyle="background-color:lightgray;" />封顶
							<s:if test="#fees.mchtAFeePercent!=null">
								&nbsp;&nbsp;<span class="tb-h4">代付服务费费率：</span>
								<s:textfield name="merinfo.fee[%{#feestat.index}].mchtAFeePercent"  value="%{#fees.mchtAFeePercent}"  maxLength="5"  readonly="true" cssStyle="background-color:lightgray;" />%
							</s:if>
                         </td>
	                 </tr> 
                </s:iterator>
               <%--  <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">商户交易风控信息</div></td>
		        </tr>
                <tr class="tb-line">
                	<td   class="tb-td" colspan="4" style="padding:0;">
                		<table style="width: 100%">
                			<tr class="tb-line">
                				<td class="tb-td" align="left">
                					<s:if test="#risk.id.CardType==\"00\"">贷记卡 </s:if>
                					<s:if test="#risk.id.CardType==\"01\"">借记卡</s:if>
                				 </td>
                				<td class="tb-td">营业时间：<s:property value="#risk.AccpetStartTime.substring(0,2)"/>:<s:property value="#risk.AccpetStartTime.substring(2,4)"/>  -  <s:property value="#risk.AccpetEndTime.substring(0,2)"/>:<s:property value="#risk.AccpetEndTime.substring(2,4)"/></td>
                				
                				<td class="tb-td">	
                					单笔下限：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].SingleMinMoney"  value="<s:if test='merinfo.productCode==\"1171\"'>0.1</s:if><s:else>1</s:else>" maxlength="4"/></label>元<span ></span>
                				</td>
                				<td class="tb-td">
                					单笔上限：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].SingleLimitmoney" value="50000" maxlength="6"/></label>元<span ></span>
                				</td>
                				<td class="tb-td">
                					单日累计限额：<label class="tb-input-mini"><input name="merinfo.terminfoList[<s:property value="#sums.index"/>].riskCfgList[<s:property value="#stat.index"/>].TotalLimitmoney" value="<s:if test='merinfo.productCode==\"1171\"'>200000</s:if><s:else>300000</s:else>" maxlength="7"/></label>元<span ></span>
                				 </td>
                			</tr>
                		</table>
                    </td>
                </tr> --%>
                <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">图片资料信息</div>
		            <input id="picDownlodBtn" type="button"   value="图片下载" />
		            </td>
		        </tr>

		           
		        <tr class="tb-line">
		        	<td  class="tb-td" colspan="4" style="padding:0;">
		        		<table style="width: 100%" class="tb-pic YLlightbox" >
		        			<tr class="tb-line">
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
		        						 
		        						<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[0].Url"/>" style="display: block;"   >
										        <img   src="<s:property value="merinfo.pictrueList[0].Url"/>">
										</a>
		        					</label>
		        					<div align="center">营业执照照片</div>		
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[1].Url"/>"  style="display: block;"  >
										         <img   src="<s:property value="merinfo.pictrueList[1].Url"/>">
										</a>
									</label>
									<div align="center">法人身份证正面照片</div>
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[2].Url"/>"  style="display: block;" >
										      <img   src="<s:property value="merinfo.pictrueList[2].Url"/>">
										</a> 
									</label>
									<div align="center">法人身份证反面照片</div>
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[3].Url"/>"  style="display: block;" >
										       <img   src="<s:property value="merinfo.pictrueList[3].Url"/>">
										</a> 
									</label>
									<div align="center">结算银行卡照片</div>
		        				</td>
		        			</tr>
		        			<tr>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[4].Url"/>"  style="display: block;" >
										         <img   src="<s:property value="merinfo.pictrueList[4].Url"/>">
										</a> 
									</label>
									<div align="center">门头照照片</div>
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[5].Url"/>"   style="display: block;">
										         <img   src="<s:property value="merinfo.pictrueList[5].Url"/>">
										</a> 
									</label>
									<div align="center">收银台照片</div>
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[6].Url"/>"  style="display: block;" >
										        <img   src="<s:property value="merinfo.pictrueList[6].Url"/>">
										</a> 
									</label>
									<div align="center">经营场所照片</div>
		        				</td>
		        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;">
		        					<label class="pic-uploading">
			        					<a rel="YLlightbox" href="<s:property value="merinfo.pictrueList[7].Url"/>"  style="display: block;" >
										         <img   src="<s:property value="merinfo.pictrueList[7].Url"/>">
										</a> 
									</label>
									<div align="center">商户协议电子稿照片</div>
		        				</td>
		        			</tr>
		        			<tr>
		        				<s:if test="merinfo.pictrueList.size()>8">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
			        						<%-- <s:if test="merinfo.pictrueList.size()<9">
			        							<p>暂未上传非法人授权书</p>
			        						</s:if>
			        						  --%>
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[8].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[8].Url"/>">
											</a> 
										</label>
										<div align="center">备注1照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>9">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[9].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[9].Url"/>">
											</a> 
										</label>
										<div align="center">备注2照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>10">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[10].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[10].Url"/>">
											</a> 
										</label>
										<div align="center">备注3照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>11">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[11].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[11].Url"/>">
											</a> 
										</label>
										<div align="center">备注4照片</div>
			        				</td>
		        				</s:if>
		        			</tr>
		        			<tr>
		        				<s:if test="merinfo.pictrueList.size()>12">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
			        						<%-- <s:if test="merinfo.pictrueList.size()<9">
			        							<p>暂未上传非法人授权书</p>
			        						</s:if>
			        						  --%>
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[12].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[12].Url"/>">
											</a> 
										</label>
										<div align="center">备注5照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>13">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[13].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[13].Url"/>">
											</a> 
										</label>
										<div align="center">备注6照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>14">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[14].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[14].Url"/>">
											</a> 
										</label>
										<div align="center">备注7照片</div>
			        				</td>
		        				</s:if>
		        				<s:if test="merinfo.pictrueList.size()>15">
			        				<td class="tb-td" style="padding:5px 0;border:1px solid #e2dfdf;"> 
			        					<label class="pic-uploading">
				        					<a rel="YLlightbox"  href="<s:property value="merinfo.pictrueList[15].Url"/>"  style="display:block;"  >
											       <img   src="<s:property value="merinfo.pictrueList[15].Url"/>">
											</a> 
										</label>
										<div align="center">备注8照片</div>
			        				</td>
		        				</s:if>
		        			</tr>
		        		</table>
		        	</td>
		        </tr>
             	 <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">拓展信息</div></td>
		     	 </tr> 
		      <tr class="tb-line">
		      		<td  align="right" class="tb-td" >商户MCC选择： </td>
		      		<td align="left" class="tb-td" colspan="3" style="padding-left:15px;">
		      			<s:select list="#request.mcc" name="merinfo.upMccCd" headerKey="" headerValue="--请选择--" disabled="true"/>
		      			<s:hidden name="merinfo.upMccCd"/>
		      		</td>
		      </tr> 
		      <tr class="tb-line">
		      		<td  align="right" class="tb-td" >32域： </td>
		      		<td align="left" class="tb-td" colspan="3" style="padding-left:15px;">
		      			<%-- <s:select id="chooseProvice" name="provice32" listKey="key" listValue="value"   list="#request.provinesMap"  headerKey="" headerValue="---请选择---" ></s:select>
		      			- <s:select id="chooseCity" list="#{'0':'请选择' }"   name="city32"/>
		      			- <s:select id="chooseArea" list="#{'0':'请选择' }"   name="merinfo.ucBccd"/> --%>
		      			<input value="<s:property value="#request.code32"/>" readonly="readonly" maxlength="50" style="width:500px;"/>
		      			<s:hidden name="merinfo.ucBccd"  />
		      		</td>
		      </tr>
		      <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">审核意见</div></td>
		      </tr>
	         <tr class="tb-line">
                   <td   align="right" class="tb-td">
                       <div class="tb-h4">进件申请人：</div>
                   </td>
                   <td  align="left" class="tb-td" style="padding-left: 15px;" colspan="3">
                   	 <s:property value="merinfo.recUpdOpr"/>
                   	 <s:hidden name="merinfo.audit.obj_Audited" value="merinfo.recUpdOpr"/>
                   </td>
                   
               </tr> 
				<tr class="tb-line">
					<td align="right" class="tb-td">
						<div class="tb-h4">审核操作：</div>
					</td>
					<td align="left" class="tb-td" style="padding-left: 15px;" colspan="3">
						<s:radio id="resultCode" name="merinfo.audit.result_code" list="#request.auditingMap" onclick="changeAuditDetail();"/> <span></span>
					</td>
				</tr>
				<tr class="tb-line">
					<td align="right" class="tb-td">
						<div class="tb-h4">审核意见：</div>
					</td>
					<td id="resultAgreeTd" align="left" class="tb-td" style="padding-left: 15px;" colspan="3"></td>
					<td id="resultRefuseTd" style="display:none" align="left" class="tb-td" style="padding-left:15px;" colspan="3">
							<s:select id="rejectType" list="#request.rejectTypeList" listValue="label" listKey="code" headerKey="00" headerValue="请选择" onChange="loadRejectReason()"></s:select>
							<select id="rejectReason" >
							<option value='0'>请选择</option>
							</select>
					</td>
				</tr>
				<tr id="refuseFreeTr" class="tb-line" style="display:none">
					<td align="right" class="tb-td"></td>
					<td  align="left" class="tb-td" style="padding-left: 15px; " colspan="3">
						<s:textarea id="resultRefuseFree" cssStyle="width:80%;" onpropertychange="textCounter(this,100);" oninput="textCounter(this,100);" />
					</td>
				</tr>
	</tbody>
</table>
  
    <div align="center" class="line-submit bg-gray">
    	<label class="tb-input-submit">
                 <input id="submitBtn" type="submit" value="提交"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </label>       
    </div>
 	 <a rel="YLlightbox" style="display: none;"  id="lookImg">
        <img />
     </a>
</s:form> 
<script>
	var currentTerNum=1;
    $(function () {
    	//***********************************************************************css
        $('#tabBody').on('click', '.tab-title .tb-title', function () {
            var $this = $(this); /// 点击的对象
            var index = $this.index();  // 点击对象的下标

            // 点击的对象添加active，同类对象移除active
            $this.addClass('active').siblings().removeClass('active');

            // 查找与点击对象相同关系的列表显示并隐藏同类对象
            $('#tabBody').find('.tab-cnt .tb').eq(index).show().siblings().hide();
        });
      //返回
    	$("#goBack").click(function(){
    		 history.go(-1);
    	});
        validateCount();//validate
    	/* $("#chooseProvice").change(function(){
    		$("#chooseCity").empty();
    		$("#chooseCity").append("<option value='0'>请选择</option>");
    		var is=$("#chooseProvice").val();
    		var param={"proviceCode":is};
    		$.ajax({
    		 	url:'<s:url value="/address/getCityMap.ct"/>',
    		 	data:param,
    	  		dataType:"text",
    	  		type:"POST",
    	  		success:function(returnResult){ 
    	  		 	var a=jQuery.parseJSON(returnResult);
    	  			 for ( var b in a[0]) {
    	  				
    	  				$("#chooseCity").append("<option value='"+b+"'>"+ a[0][b]+ "</option>");
    	  			 }   
    	  		},error:function(rsg){
    	  			alert("加载城市出错，请联系客服~！");
    	  		}	
    	 	});   		
    	});
    	
    	$("#chooseCity").change(function(){
    		$("#chooseArea").empty();
    		$("#chooseArea").append("<option value='0'>请选择</option>");
    		var is=$("#chooseCity").val();
    		var param={"cityCode":is};
    		$.ajax({
    		 	url:'<s:url value="/address/getAreaMap.ct"/>',
    		 	data:param,
    	  		dataType:"text",
    	  		type:"POST",
    	  		success:function(returnResult){ 
    	  		 	var a=jQuery.parseJSON(returnResult);
    	  			 for ( var b in a[0]) {
    	  				$("#chooseArea").append("<option value='"+b+"'>"+ a[0][b]+ "</option>");
    	  			 }   
    				 
    	  		},error:function(rsg){
    	  			alert("加载城市出错，请联系客服~！");
    	  		}	
    	 	});   		
    	}); */
    	 
    	 
    	$("#merinfoForm").validate({
			debug : true,
			submitHandler : function(form) {
				 if($("#isMid").val()==null || $("#isMid").val()==""){
					 alert("加载信息异常");
					 return;
				 }
				 var resultCode = $('input:radio[name="merinfo.audit.result_code"]:checked').val(); 
				 if(resultCode != null && resultCode != ""){	//获取审核意见
					 if(resultCode == '01'){
						$("#resultDetail").val('通过');
					 }else{
						 var rejectTypee = $("#rejectType").val();
						 var rejResultVal = $("#rejectReason").val();
						 var resultRefuseFree = $("#resultRefuseFree").val().trim();
						 if(rejResultVal != '0' || rejectTypee == 'FREE_REASON'){
							 if(rejectTypee == 'FREE_REASON'){
								 if(resultRefuseFree == null || resultRefuseFree.length<1){
									 alert("请输入驳回原因");
									 return;
								 }else{
									 $("#resultDetail").val(resultRefuseFree);
								 }
							 }else{
								 $("#resultDetail").val(rejResultVal); 
							 }
						 }else{
							 alert("请选择驳回理由");
							 return;
						 }
					 }
				 }
				 $("#submitBtn").attr("disabled",true);
				 form.submit();
			},
			rules : { 
				"merinfo.terminfoList[0].riskCfgList[0].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[0].riskCfgList[0].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[0].riskCfgList[0].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[0].riskCfgList[1].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[0].riskCfgList[1].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[0].riskCfgList[1].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[1].riskCfgList[0].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[1].riskCfgList[0].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[1].riskCfgList[0].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[1].riskCfgList[1].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[1].riskCfgList[1].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[1].riskCfgList[1].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[2].riskCfgList[0].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[2].riskCfgList[0].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[2].riskCfgList[0].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[2].riskCfgList[1].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[2].riskCfgList[1].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[2].riskCfgList[1].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[3].riskCfgList[0].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[3].riskCfgList[0].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[3].riskCfgList[0].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[3].riskCfgList[1].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[3].riskCfgList[1].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[3].riskCfgList[1].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[4].riskCfgList[0].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[4].riskCfgList[0].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[4].riskCfgList[0].TotalLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[4].riskCfgList[1].SingleMinMoney" : {required : true,isDecimal: function(){
					var min = 0.1;
					var max = 10;
					var accuracy = 1;
					return [min, max, accuracy];}}, 
				"merinfo.terminfoList[4].riskCfgList[1].SingleLimitmoney" : {required : true,digits:true,min:1}, 
				"merinfo.terminfoList[4].riskCfgList[1].TotalLimitmoney" : {required : true,digits:true,min:1},
				"merinfo.productStrs":{required:true},
				"merinfo.fee[0].mchtFeePercent":{required:true,isDecimal: function(){
					var min = 0.001;
					var max = 0.999;
					var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfo.fee[0].mchtFeePctMax":{required:true},
				"merinfo.fee[1].mchtFeePercent":{required:true,isDecimal: function(){
					var min = 0.001;
					var max = 0.999;
					var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfo.fee[1].mchtFeePctMax":{required:true},
				"merinfo.fee[2].mchtFeePercent":{required:true,isDecimal: function(){
					var min = 0.000;
					var max = 0.999;
					var accuracy = 3;
					return [min, max, accuracy];}},
				"merinfo.fee[2].mchtFeePctMax":{required:true},
				"provice32":{required:true},
				"merinfo.upMccCd":{required:true},
				"merinfo.audit.result_code":{required:true}
			},
			messages : {
				"merinfo.terminfoList[0].riskCfgList[0].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[0].riskCfgList[0].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[0].riskCfgList[0].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[0].riskCfgList[1].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[0].riskCfgList[1].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[0].riskCfgList[1].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[0].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[0].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[0].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[1].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[1].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[1].riskCfgList[1].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[0].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[0].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[0].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[1].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[1].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[2].riskCfgList[1].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[0].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[0].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[0].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[1].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[1].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[3].riskCfgList[1].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[0].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[0].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[0].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[1].SingleMinMoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[1].SingleLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"}, 
				"merinfo.terminfoList[4].riskCfgList[1].TotalLimitmoney" : {required : "必填",digits:"输入整数",min:"必须大于1"},
				"merinfo.productStrs":{required:"必选"},
				"merinfo.fee[0].mchtFeePercent": {required : "必填"},
				"merinfo.fee[0].mchtFeePctMax": {required : "必填"},
				"merinfo.fee[1].mchtFeePercent": {required : "必填"},
				"merinfo.fee[1].mchtFeePctMax": {required : "必填"},
				"merinfo.fee[2].mchtFeePercent": {required : "必填"},
				"merinfo.fee[2].mchtFeePctMax": {required : "必填"},
				"provice32":{required:"必选"},
				"merinfo.upMccCd":{required:"必选"},
				"merinfo.audit.result_code":{required:"必选"}
			},errorPlacement: function(error, element) { 
			    if ( element.is(":radio") ) error.appendTo ( element.parent() ); 
			    else if ( element.is(":checkbox") ) error.appendTo ( element.parent() ); 
			    else if ( element.is("input") ) error.appendTo ( element.parent().next()  ); 
			    else if ( element.is("select") ) error.appendTo ( element ); 
			    else error.insertAfter(element); 
			} 
		});
   		$("input[name='merinfo.productStrs']").click(function(){
   			 if(($("#choosePos").val().indexOf("0")>0 ) ){
   				 if( this.value!="1171"){
   					 this.attr("check",false);
   				 }
   			 }
   		});
    });   
       
        
    function textCounter(field, maxlimit) { 
    	if (field.value.length > maxlimit){ 
    		field.value = field.value.substring(0, maxlimit); 
    	} 
     } 
 
    $(document).ready(function() {
		
		$("#picDownlodBtn").click(
					function() {
						var id = $('#picDownlodHid').val();
						//alert('下载'+id);
						$("#downloadForm").submit();
					});
	}); 
	
	function changeAuditDetail(){
		var resultVal = $('input:radio[name="merinfo.audit.result_code"]:checked').val(); 
		if(resultVal == '01'){
			$("#rejectType").val('0');
			$("#rejectReason").empty().append("<option value='0'>请选择</option>");
			$("#resultRefuseTd").hide();
			$("#refuseFreeTr").hide();
			$("#resultAgreeTd").show().html('通过');
		}else{
			$("#resultAgreeTd").empty().hide();
			$("#resultRefuseTd").show();
			$("#rejectReason").show();
		}
	}
	
	function loadRejectReason(){
		var rejectType = $("#rejectType").val();
		$("#rejectReason").empty().append("<option value='0'>请选择</option>");
		if(rejectType == '00'){
			return;
		}
		if(rejectType == 'FREE_REASON'){	//手动输入驳回理由
			$("#rejectReason").empty().append("<option value='0'>请选择</option>").hide();
			$("#refuseFreeTr").show();
		}else{
			$("#rejectReason").show();
			$("#refuseFreeTr").hide();
			$.ajax({
				type : 'POST',
				url : '<%=basePath%>/mer/loadRejectReason.ct',
				data : {
					rejectType : rejectType
				},
				success : function(data) {
					var obj = JSON.parse(data).rejectReasons;
					for(var i in obj){
						$("#rejectReason").append("<option value='"+obj[i]+"'>"+ obj[i]+ "</option>");
					}
				},
				error:function(){
					alert("加载驳回原因失败,请重试~！");
				}
			});
		}
	}
	
	//验证身份证信息合法性
	function verifyIdNum(verifyFlag){
		var cardName = "";
		var cardId = "";
		var alertMsg = "";
		if(verifyFlag=="1"){	//法人身份证	
			cardName = $("#certif").val();
			cardId = $("#certifNo").val();
			alertMsg = "法人身份证";
		}else if(verifyFlag=="2"){	//非法人身份证
			cardName = $("#bankAccountName").val(); 
			cardId = $("#stlmWayDesc").val();
			alertMsg = "非法人身份证";
		}else{ //结算卡号
			cardName = $("#bankAccountName").val(); 
			cardId = $("#bankAccountNo").val();
			alertMsg = "结算卡号";
		}
		$.ajax({
			url:"<%=basePath%>/mer/checkIdentityInfo.ct",
			data:{"merCardName":cardName,"merCardId":cardId,"verifyFlag":verifyFlag},
			dataType:"json",
			type:"POST",
			success:function(verifyInfo){
				if(verifyInfo){
					 alert(alertMsg+"信息有效");
				}else{
					alert(alertMsg+"信息无效");
				}
			},error:function(rsg){
				alert("验证失败，请重试！");
			}
		});
	}	
</script>
</body>
</html>